package com.final_project.zombiemenace.highscore;

public interface IHighscoreHandler {

	/**
	 * Checks if the player's score should be in highscore points, and if so
	 * iterates over the array of points value to determine where to put the 
	 * new high score
	 * @param name - string value representing the name of the player
	 * @param score - integer value representing the points the player has scored
	 */
	public abstract void placeNewHighScore(String name, int score);

	/**
	 * Iterates over the highscores shared preferences file 
	 * and puts all of the scores into one string and then returns it.
	 * @return - String Value representing all score strings
	 */
	public abstract String getHighScoresAsString();

	/**
	 * Determines if the player's score is big enough to be in the highscore list
	 * @param scoredPoints - integer value representing the points that current player has scored
	 * @return - a boolean value, true if  the  score is big enough to be in the
	 * highscores, false if the score is less then the last score in the highscore list
	 */
	public abstract boolean shouldBeInHighScore(int scoredPoints);

}